﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp14
{
    class Me
    {
        private string name;

        public Me(string name)
        {
            this.name = name;
        }

        public string Name { get => name; set => name = value; }

        public int Test1()
        {
            Console.WriteLine("请你选择出拳：1.剪刀 2.石头 3.布");
            int a = int.Parse(Console.ReadLine());
            switch (a)
            {
                case 1:
                    Console.WriteLine("{0}出了一个剪刀",name);
                    break;
                case 2:
                    Console.WriteLine("{0}出了一个石头", name);
                    break;
                case 3:
                    Console.WriteLine("{0}出了一个布",name);
                    break;
            }
           
            return a;
        }
    }
}
